<?php

defined('SYSPATH') or die('No direct script access.');

class Controller_Admin_Index extends Controller_Admin {
    
    protected $pagename;
    
    public function before() {
        parent::before();        
        $admin_menu = Widget::load('adminmenu', array('action' => 'index', 'id' => 'index'), 'admin_widgets');        
        $this->template->header_menu = $admin_menu;
    }

    public function action_index() {
        $this->template->page_name = $this->pagename;        
        $content = View::factory('admin/v_admin_index', array('content' => '<h1>Доброго дня!</h1>'));
        $this->template->block_center = array($content);
    }
}

?>
